package com.study.s10.observer;

import java.util.Observable;

import com.study.s10.observer.model.Article;

public class BlogUser extends Observable {
	
	public void publishBlog(String title, String content) {
		
		Article article = new Article();
		article.setTitle(title);
		article.setContent(content);
		System.out.println("========被监听者========");
		System.out.println("我刚发布新文章");
		this.setChanged();
		this.notifyObservers(article);
	}
}
